<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>    
	<table>
			<tr>
			<c:forEach var="article" items="${list}">
			<c:if test="${article.p_category =='공구끼리'}">
				<td>
					<table>
					<tr height="300">
					<td width="300" colspan="3">
					<c:if test="${!empty article.p_listimage}">
					<img src="../adminproductupload/${article.p_listimage}" width="300" height="300">
					</c:if>
					</td>
					</tr>
					<tr>
					<%-- <td align="center" width="10%">
						${number}
						<c:set var="number" value="${number-1}"/>   
					</td> --%>
					<td>상품명 : <a href="detailPro.do?p_code=${article.p_code}">${article.p_name}</a></td>
					<td>남은 시간 : ${article.p_time}</td>
					<td>
					<c:if test="${article.p_amount > 0}">
					수량 : ${article.p_amount} 개
					</c:if>
					<c:if test="${article.p_amount == 0}">
					수량 : 0 개
					</c:if>  
					</tr>
					</table>
				</td>
					<c:if test="${number%5 == 1}">
					<tr><td></td></tr>
					</c:if>
			</c:if>					
			</c:forEach>
			</tr>
			<c:if test="${count == 0 }">
				<tr align="center">
					<td colspan="6">등록된 상품이 없습니다.</td>
				</tr>
			</c:if>
		</table>
		<br><br><br>
<div id=pageU align="center">${pagingHtml}</div>